package com.lgx.common.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lgx.common.dao.ICityDictonaryDao;
import com.lgx.common.entity.CityDictonary;
import com.lgx.common.service.ICityDictonaryService;

@Service
public class CityDictonaryService implements ICityDictonaryService {

	@Autowired
	private ICityDictonaryDao cityDictonaryDao;
	
	public ICityDictonaryDao getCityDictonaryDao() {
		return cityDictonaryDao;
	}

	public void setCityDictonaryDao(ICityDictonaryDao cityDictonaryDao) {
		this.cityDictonaryDao = cityDictonaryDao;
	}

	@Override
	public List<CityDictonary> findCityDictonaryList(String type,
			String parentId) {
		return this.cityDictonaryDao.findCityDictonaryList(type, parentId);
	}

	
	@Override
	public List<?> findCityDictonaryList(String id) {
		return this.cityDictonaryDao.findCityDictonaryList(id);
	}

}
